﻿@using System.Net.Mime
@model testEmpty.Model.GuestResponse
@{
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width"/>
    <title>RsvpForm</title>
</head>
<body>
@using (Html.BeginForm())
{
    <p>Your name:@Html.TextBoxFor(x => x.Name)</p>
    <p>Your email:@Html.TextBoxFor(x => x.Email)</p>
    <p>Your Phone: @Html.TextBoxFor(x => x.Phone)</p>
    <p>
        Will you attend?
        @Html.DropDownListFor(x => x.WillAttend, new[]
        {
            new SelectListItem()
            {
                Text = "Yes,I'll be there",
                Value = bool.TrueString
            },
            new SelectListItem()
            {
                Text = "No,I can't come",
                Value = bool.FalseString
            }
        }, "Choose an option")
    </p>
    <input type="submit" value="Submit RSVP"/>
}
</body>
</html>